<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>WanDa</title>
<script type="text/javascript" src="/skin/WDYYhtml/js/jquery.js"></script>
<script type="text/javascript" src="/skin/WDYYhtml/js/common.js"></script>
<link rel="stylesheet" href="/skin/WDYYhtml/css/style.css" type="text/css" media="all" />
</head>

<body>
<div class="header-wrapper">
	#parse('/inc/header.htm')
</div>

<!---->
<div id="Wrapper">
	<div class="wrapper">
		<!---->
		<div class="banner">
			<img src="/skin/WDYYhtml/images/banner_manage.jpg" alt="" />
		</div>
		
		<!---->
		<div class="page-nav">
			<a href="/index.do">首页</a> / <a href="/u.do?utid=2">经纪</a> / <em>$thisUsertype.name</em>
		</div>
		
		<div class="menu" id="pMenu">
			#set($utype = $utDAO.findById(1))
			#foreach($atype in $utype.getSubTypes())
			<a href="/u.do?utid=$atype.id"
		    #if($atype.id==$thisUsertype.id) class="active"#end
		    >$atype.name</a>
			#end
		</div>
		
		<!---->
		<div class="ptitle">
			<h1>STAR</h1><h2>$thisUsertype.name</h2>
		</div>
		
		<div class="container">
			<div class="c4">
				<ul id="mList"> 
				
				</ul>
			</div>
		</div>
	</div>
	<div class="footer">
		#parse('/inc/copyright.htm')
		<p></p>
		<p></p>	
	</div>
</div>

<!---->
<div class="footer-wrapper">
	<div class="footer">
		#parse('/inc/nav.htm')
		##parse('/inc/copyright.htm')
	</div>
</div>

<!---->
<div id="NavLeft"><a href="javascript:void(0)">Show</a></div>
<div id="NavRight"><a href="javascript:void(0)">Star</a></div>

<script type="text/javascript">
$(function(){
	mfall(page);
})

var page = 1;
$(window).scroll(function(){
	var sT = document.documentElement.scrollTop || document.body.scrollTop;
	var pH = document.documentElement.clientHeight || document.body.clientHeight;
	var dH = $("#Wrapper").outerHeight();
	
	if(sT >= dH - pH){
		page++;
		mfall(page);
	}
});


function mfall(i){
	$.ajax({
		url:'/u.do?parameter=ulist',
		data:{"page":i,"utid":$utid}
	}).done(function(data){
		var data = eval(data);
		$.each(data.list,function(i,item){
			if(item.isNew){
				html = "<li><a href='"+item.links+"'><img src='"+item.img+"' alt='' /></a><div class='info'><h3><a href='"+item.links+"'>"+item.name+"</a></h3><span class='num'>"+item.num+"</span></div><p>"+item.act+"</p><span class='inew'></li>";}else{
				html = "<li><a href='"+item.links+"'><img src='"+item.img+"' alt='' /></a><div class='info'><h3><a href='"+item.links+"'>"+item.name+"</a></h3><span class='num'>"+item.num+"</span></div><p>"+item.act+"</p></li>";	
					}
			$(html).appendTo($("#mList"));
		})
		
		$("#mList>li img").css("opacity",0.5).hover(function(){
			$(this).animate({"opacity":1});
		},function(){
			$(this).animate({"opacity":0.5});
		});
		
	});
}
</script>
</body>
</html>
